﻿#include"server.hpp"

int main(int argc, char** argv)
{
    if (argc < 2)
    {
        std::cerr << "port" << std::endl;
        return -1;
    }

    //端口号转化

    uint16_t port = atoi(argv[1]);
    std::string ip = "127.0.0.1";
    Server server(ip, port);

    server.init();
    server.start();

    return 0;
}